﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UpdateClient
{
    public class UpdateInfoDtl
    {
        /// <summary>
        /// 文件相对路径
        /// </summary>
        public string FilePath {  get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize {  get; set; }
        /// <summary>
        /// 文件版本
        /// </summary>
        //public string Version { get; set; }
        /// <summary>
        /// 
        /// </summary>
        //public string PackageHash {  get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string PackageName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        //public string PackageSize { get; set; }
        //类型
        public int Type {  get; set; } //1新增 2更新 3清除  4添加
    }

    public class UpdateInfo
    {
        public int PublishType { get; set; }//1覆盖 2 比较更新
        public List<UpdateInfoDtl> Dtls { get; set; }=new List<UpdateInfoDtl>();
    }
}
